import os


def clip_list1(news_id):
    vlist = []
    for video1, video2, video3 in os.walk(
            'E:\\proj\\chuanmei_news-kong_dev\\chuanmei_news-kong_dev\\news_server\\media'):
        for v in video3:
            if news_id in v:
                if v.endswith('.mp4'):
                    vlist.append(v)
    return vlist


def clip_list(news_id):
    vlist = []
    video_path_root = "E:\\proj\\chuanmei_news-kong_dev\\chuanmei_news-kong_dev\\news_server\\media\\videos"
    video_path_dir = os.path.join(video_path_root, news_id)
    for video in os.listdir(video_path_dir):
        if news_id in video:
            if video.endswith('.mp4'):
                vlist.append(video)
    return vlist
